/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marketrmi;

import id2212.homework2.ClientInter;
import java.rmi.RemoteException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author yann
 */
public class CallBackThread implements Runnable{
    private ClientInter client;
    private String str;
    
    public CallBackThread(ClientInter client, String str){
        this.client = client;
        this.str = str;
    }
    @Override
    public void run() {
        try {
            client.callBackWish(str);
        } catch (RemoteException ex) {
            Logger.getLogger(CallBackThread.class.getName()).log(Level.SEVERE, null, ex);
        }
        //throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
